// 1.引入组件
import HDYduiInput from './yduiinpput'
import HDSvgIcon from './hdsvgicon'
import HDHeader from './hdheader'
import HDFooter from './hdfooter'
// import HDcalendar from './hdcalendar'

import {HDScrollBar, HDScrollBarItem} from './hdScrollBar'
import {HDScrollPanel, HDScrollPanelItem} from './hdScrollPanel'
import HDUpload from './hdUpload'
// 2.注册组件
const install = (Vue) => {
  Vue.component(HDYduiInput.name, HDYduiInput)
  Vue.component(HDSvgIcon.name, HDSvgIcon)
  Vue.component(HDHeader.name, HDHeader)
  Vue.component(HDFooter.name, HDFooter)
  // Vue.component(HDcalendar.name, HDcalendar)
  Vue.component(HDScrollBar.name, HDScrollBar)
  Vue.component(HDScrollBarItem.name, HDScrollBarItem)
  Vue.component(HDScrollPanel.name, HDScrollPanel)
  Vue.component(HDScrollPanelItem.name, HDScrollPanelItem)
  Vue.component(HDUpload.name, HDUpload)
}

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(install)
}

export default {
  install
}
